package ro.gateway.aida.struts.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/** 
 * EditOrgForm.java
 * 
 * XDoclet definition:
 * @struts:form name="editOrgForm"
 */
public class EditOrgForm extends ActionForm {

	// --------------------------------------------------------- Instance Variables
	private String name;
	private String description;
	private String countryISO3;
	private String AIDAOrg;
	private String acronym;
	private String address1;
	private String address2;
	private int type;
	private String contactName;
	private String contactEmail;
	private String contactTitle;
	private String contactPhone1;
	private String contactPhone2;
	private String contactPhone3;
	
	private String contactFax1;
	private String contactFax2;
	private String contactFax3;
	
	
	private String contactURL;
	private String infoSource;
	private long[] unlink_people_ids;
	
	private long id;

	// --------------------------------------------------------- Methods

	/** 
	 * Method validate
	 * @param ActionMapping mapping
	 * @param HttpServletRequest request
	 * @return ActionErrors
	 */
/*	public ActionErrors validate(
		ActionMapping mapping,
		HttpServletRequest request) {
		request.setAttribute("error.aidaorg","present");
			return new ActionErrors();
	}
*/
	/** 
	 * Method reset
	 * @param ActionMapping mapping
	 * @param HttpServletRequest request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		name = "";
		id = -1;
	 	description="";
		countryISO3="";
		AIDAOrg="";
		acronym="";
		address1="";
		address2="";
		type=0;
		contactName="";
		contactEmail="";
		contactPhone1="";
		contactPhone2="";		
		contactPhone3="";
		contactFax1="";
		contactFax2="";		
		contactFax3="";	
		infoSource="";
		contactURL="";
	}



	/** 
	 * Returns the name.
	 * @return String
	 */
	public String getName() {
		return name;
	}

	/** 
	 * Set the name.
	 * @param name The name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/** 
	 * Returns the id.
	 * @return String
	 */
	public long getId() {
		return id;
	}

	/** 
	 * Set the id.
	 * @param id The id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return
	 */
	public String getAcronym() {
		return acronym;
	}

	/**
	 * @return
	 */
	public String getAddress1() {
		return address1;
	}

	/**
	 * @return
	 */
	public String getAddress2() {
		return address2;
	}

	/**
	 * @return
	 */
	public String getAIDAOrg() {
		return AIDAOrg;
	}

	/**
	 * @return
	 */
	public String getContactEmail() {
		return contactEmail;
	}


	/**
	 * @return
	 */
	public String getContactName() {
		return contactName;
	}

	/**
	 * @return
	 */
	public String getContactURL() {
		return contactURL;
	}

	/**
	 * @return
	 */
	public String getCountryISO3() {
		return countryISO3;
	}

	/**
	 * @return
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @return
	 */
	public int getType() {
		return type;
	}

	/**
	 * @param string
	 */
	public void setAcronym(String string) {
		acronym = string;
	}

	/**
	 * @param string
	 */
	public void setAddress1(String string) {
		address1 = string;
	}

	/**
	 * @param string
	 */
	public void setAddress2(String string) {
		address2 = string;
	}

	/**
	 * @param string
	 */
	public void setAIDAOrg(String string) {
		AIDAOrg = string;
	}

	/**
	 * @param string
	 */
	public void setContactEmail(String string) {
		contactEmail = string;
	}



	/**
	 * @param string
	 */
	public void setContactName(String string) {
		contactName = string;
	}

	/**
	 * @param string
	 */
	public void setContactURL(String string) {
		contactURL = string;
	}

	/**
	 * @param string
	 */
	public void setCountryISO3(String string) {
		countryISO3 = string;
	}

	/**
	 * @param string
	 */
	public void setDescription(String string) {
		description = string;
	}

	/**
	 * @param i
	 */
	public void setType(int i) {
		type = i;
	}

	
	/**
	 * @return
	 */
	public long[] getUnlink_people_ids() {
		return unlink_people_ids;
	}

	/**
	 * @param ls
	 */
	public void setUnlink_people_ids(long[] ls) {
		unlink_people_ids = ls;
	}


    /**
     * @return Returns the infoSource.
     */
    public String getInfoSource() {
        return infoSource;
    }
    /**
     * @param infoSource The infoSource to set.
     */
    public void setInfoSource(String infoSource) {
        this.infoSource = infoSource;
    }
	/**
	 * @return Returns the contactPhone1.
	 */
	public String getContactPhone1() {
		return contactPhone1;
	}
	/**
	 * @param contactPhone1 The contactPhone1 to set.
	 */
	public void setContactPhone1(String contactPhone1) {
		this.contactPhone1 = contactPhone1;
	}
	/**
	 * @return Returns the contactPhone2.
	 */
	public String getContactPhone2() {
		return contactPhone2;
	}
	/**
	 * @param contactPhone2 The contactPhone2 to set.
	 */
	public void setContactPhone2(String contactPhone2) {
		this.contactPhone2 = contactPhone2;
	}
	/**
	 * @return Returns the contactPhone3.
	 */
	public String getContactPhone3() {
		return contactPhone3;
	}
	/**
	 * @param contactPhone3 The contactPhone3 to set.
	 */
	public void setContactPhone3(String contactPhone3) {
		this.contactPhone3 = contactPhone3;
	}
	/**
	 * @return Returns the contactFax1.
	 */
	public String getContactFax1() {
		return contactFax1;
	}
	/**
	 * @param contactFax1 The contactFax1 to set.
	 */
	public void setContactFax1(String contactFax1) {
		this.contactFax1 = contactFax1;
	}
	/**
	 * @return Returns the contactFax2.
	 */
	public String getContactFax2() {
		return contactFax2;
	}
	/**
	 * @param contactFax2 The contactFax2 to set.
	 */
	public void setContactFax2(String contactFax2) {
		this.contactFax2 = contactFax2;
	}
	/**
	 * @return Returns the contactFax3.
	 */
	public String getContactFax3() {
		return contactFax3;
	}
	/**
	 * @param contactFax3 The contactFax3 to set.
	 */
	public void setContactFax3(String contactFax3) {
		this.contactFax3 = contactFax3;
	}
	/**
	 * @return Returns the contactTitle.
	 */
	public String getContactTitle() {
		return contactTitle;
	}
	/**
	 * @param contactTitle The contactTitle to set.
	 */
	public void setContactTitle(String contactTitle) {
		this.contactTitle = contactTitle;
	}
}
